import { createApp } from 'vue'
import App from './App.vue'
import store from './store'
import "./../node_modules/bootstrap/dist/css/bootstrap.css"; // 引入
import "./assets/index.css"; // 引入index.css
import VueRouter from 'vue-router'
// 引入组件
import Hero from './components/List'
import Skin from './components/Skin'
import Players from './components/Players'

// 配置路由
let router = new VueRouter({
    routes: [{
      path: '/heroes' ,
      component: Hero
    },{
        path: '/skins',
        component: Skin
    },{
        path: '/players',
        component: Players
    }]
})

createApp(App,{
  router
}).use(store,VueRouter).mount('#app');
